/**  
* @Title: EmployeePO.java
* @Package cn.net.mtons.persist.entity.po
* @Description: TODO
* @author ma jinjian  
* @date 2015年12月19日 下午7:20:39
* @version V1.0  
*/ 
package cn.net.mtons.model.entity.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: EmployeePO
 * @Description: TODO
 * @author ma jinjian
 * @date 2015年12月19日 下午7:20:39
 *
 */
@Entity
@Table(name="emplyee")
public class EmployeePO {

	@Id
	@Column(name="employee_id", nullable=false)
	private long id;
	
	@Column(name="department_id", nullable=false)
	private long department_id;
	
	@Column(name="user_id", nullable=false)
	private long user_id;
	
	@Column(name="employee_name", nullable=false)
	private String name;
	
	@Column(name="employee_position", nullable=false)
	private String position;
	
	@Column(name="employee_salary", nullable=false)
	private long salary;
	
	@Column(name="employee_desc", nullable=false)
	private String desc;
	
	@Column(name="employee_manager", nullable=false)
	private long manager;
	
	@Column(name="hiredate", nullable=false)
	private Date hiredate;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getDepartment_id() {
		return department_id;
	}

	public void setDepartment_id(long department_id) {
		this.department_id = department_id;
	}

	public long getUser_id() {
		return user_id;
	}

	public void setUser_id(long user_id) {
		this.user_id = user_id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public long getSalary() {
		return salary;
	}

	public void setSalary(long salary) {
		this.salary = salary;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public long getManager() {
		return manager;
	}

	public void setManager(long manager) {
		this.manager = manager;
	}

	public Date getHiredate() {
		return hiredate;
	}

	public void setHiredate(Date hiredate) {
		this.hiredate = hiredate;
	}

	@Override
	public String toString() {
		return "EmployeePO [id=" + id + ", department_id=" + department_id
				+ ", user_id=" + user_id + ", name=" + name + ", position="
				+ position + ", salary=" + salary + ", desc=" + desc
				+ ", manager=" + manager + ", hiredate=" + hiredate + "]";
	}
}
